    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
    .btn{font-weight: normal;}
    .panel-heading{
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 15px 15px 10px 15px;
    }
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12">
                            <!-- col-lg-12 start here -->
                            <div class="panel panel-default toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading">
                                    <a href="{:url('kuang/tilian_list',['status'=>'0'])}" class="btn {$status=='0'?'btn-primary':'btn-dark'}">等待中</a>
                                    <a href="{:url('kuang/tilian_list',['status'=>'3'])}" class="btn {$status=='3'?'btn-primary':'btn-dark'}">转账中</a>
                                    <a href="{:url('kuang/tilian_list',['status'=>'1'])}" class="btn {$status=='1'?'btn-primary':'btn-dark'}">成功</a>
                                    <a href="{:url('kuang/tilian_list',['status'=>'2'])}" class="btn {$status=='2'?'btn-primary':'btn-dark'}">失败</a>
                                    <a href="{:url('kuang/tilian_list',['status'=>'all'])}" class="btn {$status=='all'?'btn-primary':'btn-dark'}">全部</a>
                                    <input type="button" class="btn" value="总提链：{$sum.all}">
                                    <input type="button" class="btn" value="总提链中：{$sum.ing}">
                                    <input type="button" class="btn" value="总提链成功：{$sum.ok}">
                                    <form action="{:url('kuang/tilian_nonce')}" method="post" style="width: 200px;">
                                        {:token()}
                                        <div class="input-group">
                                            <input type="number" name="nonce" class="form-control" onclick="alert('非技术人员请勿操作！')" value="{$max_nonce}">
                                            <span class="input-group-btn">
                                                <input type="submit" class="btn btn-info" value="修正nonce">
                                            </span>
                                        </div>
                                    </form>
                                </div>
                                <div class="panel-body">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th class="per5">
                                                    <label class="checkbox">
                                                        <input class="check-all" type="checkbox">
                                                    </label>
                                                </th>
                                                <th>手机</th>
                                                <th>姓名</th>
                                                <th>社区</th>
                                                <th>社长</th>
                                                <th>提链数量</th>
                                                <th>申请时间</th>
                                                <th class="hash">
                                                    hash <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.hash').hide();">
                                                </th>
                                                <th>交易号</th>
                                                <th class="uptime">
                                                    操作时间 <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.uptime').hide();">
                                                </th>
                                                <th class="blocknumber">
                                                    区块 <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.blocknumber').hide();">
                                                </th>
                                                <th>gas</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {foreach $lists as $list} 
                                            <?php
                                                $user=userinfobyid($list['uid']);
                                            ?>
                                            <tr>
                                                <td>
                                                    <label class="checkbox">
                                                        <input class="check" type="checkbox" value="{$list.id}">
                                                    </label>
                                                </td>
                                                <td>{$list.uname}</td>
                                                <td>{$user.truename?:'<span class="text-info" data-toggle="tooltip" data-placement="left" title="姓名未填，当前显示昵称">'.$user.nicename.'</span>'}</td>
                                                <?php $shequ=find_shequ('arr',$list['uid']);?>
                                                <td>{$shequ.name}</td>
                                                <td>{$shequ.uname}</td>
                                                <td data-toggle="tooltip" data-placement="left" title="已扣除手续费/矿工费">{$list.money*1}</td>
                                                <td>{$list.time|date='Y-m-d H:i:s',###}</td>
                                                <td class="hash">{$list.hash?:''}</td>
                                                <td>{$list.nonce?:''}</td>
                                                <td class="uptime">{$list.uptime?date('Y-m-d H:i:s',$list.uptime):''}</td>
                                                <td class="blocknumber">{$list.blocknumber?:''}</td>
                                                <td data-toggle="tooltip" data-placement="left" title="{$list.gasused?$list.gasused*0.00000001.' ETH':''}">{$list.gasused?:''}</td>
                                                <td>
                                                    {if condition='$list.status eq "0"'}
                                                        <span class="">等待中</span>
                                                    {elseif condition='$list.status eq "1"' /}
                                                        <span class="text-success">成功</span>
                                                    {elseif condition='$list.status eq "2"' /}
                                                        <span class="text-danger">失败</span>
                                                    {elseif condition='$list.status eq "3"' /}
                                                        <span class="text-primary">转账中..</span>
                                                    {/if}
                                                </td>
                                                <td>
                                                    {if condition='$list.status eq "0"'}
                                                    <a href="{:url('kuang/tilian_do',['id'=>$list.id])}" class="mt5 btn btn-xs btn-primary" data-toggle="tooltip" data-placement="left" title="{$list.uname}">给他提</a>
                                                    {elseif condition='$list.status eq "3"' /}
                                                    <a href="{:url('kuang/tilian_status',['id'=>$list.id])}" class="mt5 btn btn-xs btn-lime" data-toggle="tooltip" data-placement="left" title="{$list.uname}">刷新</a>
                                                    {elseif condition='$list.status eq "2"' /}
                                                    <a href="{:url('kuang/tilian_do',['id'=>$list.id])}" class="mt5 btn btn-xs btn-magenta" data-toggle="tooltip" data-placement="left" title="{$list.uname}">重试</a>
                                                    {/if}
                                                </td>
                                            </tr>
                                        {/foreach}
                                        </tbody>
                                        <tfoot>
                                            <tr>
                                                <th class="per5">
                                                    <label class="checkbox">
                                                        <input class="check-all" type="checkbox">
                                                    </label>
                                                </th>
                                                <th>手机</th>
                                                <th>姓名</th>
                                                <th>社区</th>
                                                <th>社长</th>
                                                <th>提链数量</th>
                                                <th>申请时间</th>
                                                <th class="hash">
                                                    hash <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.hash').hide();">
                                                </th>
                                                <th>交易号</th>
                                                <th class="uptime">
                                                    操作时间 <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.uptime').hide();">
                                                </th>
                                                <th class="blocknumber">
                                                    区块 <input type="button" value='X' class="btn btn-xs btn-magenta" onclick="$('.blocknumber').hide();">
                                                </th>
                                                <th>gas</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                        </tfoot>
                                    </table>
                                    <div class="row">
                                        <div class="col-md-6">
                                            {$lists->render()}
                                        </div>
                                        <div class="col-md-6">
                                            <p>总数：{$lists->total()}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script src="/public/theme/win10/assets/plugins/forms/checkall/jquery.checkAll.js"></script>
        <script>
            $('.table').checkAll({
                masterCheckbox: '.check-all',
                otherCheckboxes: '.check'
            });
        </script>
    </body>
</html>